package com.wchat.enums;

/**
 * Created by yangtianrui on 17/8/11.
 */
public enum ResultEnum {

    PRODUCT_NOT_EXITS(10,"商品不存在"),
    STOCK_SHORTAGE (20,"库存不足"),
    ORDER_NOT_EXIT(30,"订单不存在"),
    ORDERDETAIN_NOT_EXIT(40,"订单详情不存在"),
    CART_IS_EMPTY(50,"购物车为空"),
    ORDERSTARUS_NOT_CORRECT(60,"订单状态不正确"),
    PAID_STATUS_NOT_CORRECT(70,"订单支付状态不正确"),
    PARAM_ERROR(80,"参数不正确"),
    CART_NOT_EMPT(90,"购物车不能为空"),
    ORDER_MASTER_ERROR(100,"该订单不属于当前用户"),
    WX_MP_ERROR(101,"微信公众号异常"),
    NOTIFY_ORDER_ERROR(102,"异步通知中订单不存在"),
    NOTIFY_TRANSACTION_AMOUNT_DISACCORD(103,"订单金额不一致")
    ;


    private Integer code;

    private  String value;

    ResultEnum(Integer code,String value)
    {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }
}
